package com.my.cloud.apis;

import com.my.cloud.resp.ResultData;
import com.my.cloud.resp.ReturnCodeEnum;
import org.springframework.stereotype.Component;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/3/13 16:58
 */
@Component
public class PayFeignSentinelApiFallBack implements PayFeignSentinelApi
{
    // 远程调用的方法出错就会调用此方法降级
    @Override
    public ResultData getPayByOrderNo(String orderNo)
    {
        return ResultData.failure(ReturnCodeEnum.RC500.getCode(),"对方服务宕机或不可用，FallBack服务降级o(╥﹏╥)o");
    }
}
